<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/22 0022
 * Time: 16:02
 */
class Mdl_Pm_Site_Attach extends Mdl_Table
{
    protected $_table = 'pm_site_attach';
    protected $_pk = 'site_attach_id';
    protected $_cols = 'site_attach_id,thumb,progress_id,dateline';

    public function create_many($data, $checked=false)
    {
        if(!$checked && !$data = $this->_check_schema($data)){
            return false;
        }
        foreach($data as $key=>$value){
            $this->db->insert($this->_table, $value, true);
        }
        return true;

    }


}